//
//  main.m
//  KVC 5-17
//
//  Created by mac on 16-5-17.
//  Copyright (c) 2016年 ZF. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Linkman.h"
int main(int argc, const char * argv[])
{

    @autoreleasepool
    {
        Linkman *linkman = [[Linkman alloc]init];
        
         [linkman setValue:@"zhufeng" forKey:@"name"];
          //NSLog(@"%@",[linkman valueForKey:@"name"]);
          //valueForKey:NSString *  寻找一个属性并返回它的值
        
        NSArray *arr = @[@"a",@"b",@"c",@"d"];
        arr = [arr valueForKeyPath:@"length"];
        //valueForKeyPath:@"string" 让数组内的元素都执行指定方法
        NSLog(@"%@",arr);
        
    }
    return 0;
}

